//
//  PlayerViewController.h
//  SHEL
//
//  Created by Jennifer Guriel on 11/3/11.
//  Copyright 2011 Washington University. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface PlayerViewController : UIViewController {

	IBOutlet UILabel *topBarLabel;
	NSMutableArray *playerIcons;
	NSMutableArray *playerData;
	NSMutableArray *playerHistory;
	NSMutableArray *playerTrauma;
	NSMutableArray *hitCountList;
	
	Boolean greenPresent;
	Boolean yellowPresent;
	Boolean redPresent;
	Boolean greyPresent;
	int previousState;
	
	NSMutableArray *shakeState;
}

@property (nonatomic, retain) IBOutlet UILabel* topBarLabel;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
-(void)updatePlayerData:(NSArray *)data;
-(CGPoint) getButtonPosition:(int)index buttonSize:(CGSize)size;
-(void) updatePlayerHistory:(int)index;
-(void) addPlayerHistory:(int)index history:(NSArray*)history;
-(void) setPlayerData:(NSMutableArray*) data;
-(void) shakeHelmet:(int)index;
-(void) updateShakeState:(NSTimer*)timer;
-(void) addPlayerTrauma:(int)index trauma:(NSArray*)trauma;

@end
